\hypertarget{classPool}{}\section{Pool$<$ T $>$ Class Template Reference}
\label{classPool}\index{Pool$<$ T $>$@{Pool$<$ T $>$}}


{\ttfamily \#include $<$mempool.\+h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classPool_a888aa5ad1715a1e4b7c77b3feb1eabbe}{Pool} (size\+\_\+t chunk\+\_\+size=\hyperlink{mempool_8h_a86261d934fc0037fd4222a4bbe607fdc}{D\+E\+F\+A\+U\+L\+T\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE})
\item 
\hyperlink{classPool_ab528bd55fc8b6dde0c9001d710ac7b9f}{$\sim$\+Pool} ()
\item 
T $\ast$ \hyperlink{classPool_a2f4c2e7c9bff98ca50378c65bc173df1}{add} ()
\item 
void \hyperlink{classPool_a45c1e227ab658b1e9a40eafb6d211aff}{del} (T $\ast$obj)
\item 
void \hyperlink{classPool_a96b382bc6687855efde20601ed80f5e4}{clear} (bool force=\hyperlink{mempool_8h_a897472b9024f01f2c26aa6d6805e259f}{D\+E\+F\+A\+U\+L\+T\+\_\+\+F\+O\+R\+C\+E\+\_\+\+C\+L\+E\+AR})
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$\\*
class Pool$<$ T $>$}



Definition at line 7 of file mempool.\+h.



\subsection{Constructor \& Destructor Documentation}
\index{Pool@{Pool}!Pool@{Pool}}
\index{Pool@{Pool}!Pool@{Pool}}
\subsubsection[{\texorpdfstring{Pool(size\+\_\+t chunk\+\_\+size=\+D\+E\+F\+A\+U\+L\+T\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+Z\+E)}{Pool(size_t chunk_size=DEFAULT_CHUNK_SIZE)}}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ {\bf Pool}$<$ T $>$\+::{\bf Pool} (
\begin{DoxyParamCaption}
\item[{size\+\_\+t}]{chunk\+\_\+size = {\ttfamily {\bf D\+E\+F\+A\+U\+L\+T\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE}}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\hypertarget{classPool_a888aa5ad1715a1e4b7c77b3feb1eabbe}{}\label{classPool_a888aa5ad1715a1e4b7c77b3feb1eabbe}


Definition at line 33 of file mempool.\+h.

\index{Pool@{Pool}!````~Pool@{$\sim$\+Pool}}
\index{````~Pool@{$\sim$\+Pool}!Pool@{Pool}}
\subsubsection[{\texorpdfstring{$\sim$\+Pool()}{~Pool()}}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ {\bf Pool}$<$ T $>$\+::$\sim${\bf Pool} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\hypertarget{classPool_ab528bd55fc8b6dde0c9001d710ac7b9f}{}\label{classPool_ab528bd55fc8b6dde0c9001d710ac7b9f}


Definition at line 37 of file mempool.\+h.



\subsection{Member Function Documentation}
\index{Pool@{Pool}!add@{add}}
\index{add@{add}!Pool@{Pool}}
\subsubsection[{\texorpdfstring{add()}{add()}}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ T$\ast$ {\bf Pool}$<$ T $>$\+::add (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\hypertarget{classPool_a2f4c2e7c9bff98ca50378c65bc173df1}{}\label{classPool_a2f4c2e7c9bff98ca50378c65bc173df1}


Definition at line 48 of file mempool.\+h.

\index{Pool@{Pool}!clear@{clear}}
\index{clear@{clear}!Pool@{Pool}}
\subsubsection[{\texorpdfstring{clear(bool force=\+D\+E\+F\+A\+U\+L\+T\+\_\+\+F\+O\+R\+C\+E\+\_\+\+C\+L\+E\+A\+R)}{clear(bool force=DEFAULT_FORCE_CLEAR)}}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ void {\bf Pool}$<$ T $>$\+::clear (
\begin{DoxyParamCaption}
\item[{bool}]{force = {\ttfamily {\bf D\+E\+F\+A\+U\+L\+T\+\_\+\+F\+O\+R\+C\+E\+\_\+\+C\+L\+E\+AR}}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\hypertarget{classPool_a96b382bc6687855efde20601ed80f5e4}{}\label{classPool_a96b382bc6687855efde20601ed80f5e4}


Definition at line 64 of file mempool.\+h.

\index{Pool@{Pool}!del@{del}}
\index{del@{del}!Pool@{Pool}}
\subsubsection[{\texorpdfstring{del(\+T $\ast$obj)}{del(T *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ void {\bf Pool}$<$ T $>$\+::del (
\begin{DoxyParamCaption}
\item[{T $\ast$}]{obj}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\hypertarget{classPool_a45c1e227ab658b1e9a40eafb6d211aff}{}\label{classPool_a45c1e227ab658b1e9a40eafb6d211aff}


Definition at line 59 of file mempool.\+h.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Ship\+C\+A\+Dlib/\hyperlink{mempool_8h}{mempool.\+h}\end{DoxyCompactItemize}
